﻿<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="CityFly" xmlns:page="urn:page">
  <xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
  <xsl:param name="rowcount"/>
  <!--数据库总记录数-->
  <xsl:param name="maxrow"/>
  <!--每页记录数-->
  <xsl:param name="curpage"/>
  <!--当前页码-->
  <xsl:param name="param"/>
  <!--引入 param 参数-->
  <xsl:param name="templatename"/>
  <!--Label.xml 模块名称-->
  <xsl:param name="orderby"/>
  <!--Label.xml orderby 参数-->
  <xsl:param name="where"/>
  <!--Label.xml where 参数-->
  <xsl:param name="runtime"/>
  <!--运行时长-->
  <msxsl:script language="javascript" implements-prefix="user">function StrSplit(Str,splitChar,n){
    if(Str.length=0){return '1'}
    var a=Str.replace(/'/g,&quot;&quot;).split(splitChar);
    if(n&lt;a.length){
    if(a[n].length==0)return '1';
    return a[n];
    }
    return '1';
    }</msxsl:script>
  <xsl:template match="/">
    <!--标题开头-->
    <form id="form1" name="form1" method="post">
      <table width="100%" border="0" cellspacing="1" bgcolor="#E0E0E0" class="infoEdit">
        <tr>
          <td width="100" bgcolor="#FFFFFF">所在分站：</td>
          <td bgcolor="#FFFFFF">      <select name="siteid">
      <xsl:value-of select="page:xLoadList('SiteSelect')" disable-output-escaping="yes"/>
      </select></td>
        </tr>
        <tr>
          <td width="100" bgcolor="#FFFFFF">所在栏目：</td>
          <td bgcolor="#FFFFFF">          <select name="F_Catalog_ID" id="F_Catalog_ID">
            <xsl:value-of select="page:xLoadList('InfoCatalogSelect',0,page:xRequest('catalogid',string(rows/row/F_Catalog_ID)))"  disable-output-escaping="yes"/>
          </select></td>
        </tr>
        <tr>
          <td width="100" bgcolor="#FFFFFF">标题：</td>
          <td bgcolor="#FFFFFF"><input name="F_Title" class="w300" id="F_Title" value="{rows/row/Title}" size="50" maxlength="50"/><font color="#9e9e9e">&nbsp;50个字符以内</font></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF">标题样式：</td>
          <td bgcolor="#FFFFFF"><input  name="style" class="w300" id="style" value="{rows/row/F_Style}" size="50" maxlength="50"/>
            <font color="#9e9e9e">&nbsp;
<label>
  <input name="checkbox" type="checkbox" id="checkbox" onclick="if(this.checked)$('style').value+=this.value;else $('style').value=$('style').value.replace(this.value,'')" value="font-weight:bold;"/>加粗
</label>
            CSS代码</font></td>
        </tr>
        <tr>
          <td width="100" bgcolor="#FFFFFF">作者：</td>
          <td bgcolor="#FFFFFF"><input name="F_Author" class="w100" id="F_Author" value="{rows/row/F_Author}" size="30" maxlength="30"><xsl:attribute name="value"><xsl:value-of select="page:xAdmin('LoginUID')"/></xsl:attribute></input>
            来源:
              <input name="F_ComeFrom" class="w150" id="F_ComeFrom"  size="30" maxlength="30"><xsl:attribute name="value"><xsl:value-of select="rows/row/Resource"/></xsl:attribute></input></td>
        </tr>
        <tr>
          <td width="100" bgcolor="#FFFFFF">推荐值：</td>
          <td bgcolor="#FFFFFF"><input name="recommend" type="text" size="5"><xsl:attribute name="value">0</xsl:attribute></input><font color="#9e9e9e">不推荐请填写0.</font></td>
        </tr>
        <tr>
          <td colspan="2" bgcolor="#FFFFFF"><div id="divContent">
          <!--<textarea name="F_Content" class="htmlContent" id="F_Content{page:xRequest('number__')}" style="width:80%; border:1 solid #999999; background-color:#F7F7F7"><xsl:if test="count(rows/row)!=0"><xsl:value-of select="rows/row/F_Content" disable-output-escaping="yes" /></xsl:if><xsl:if test="(string-length(rows/row/F_Content)=0)">&nbsp;</xsl:if>
  </textarea> -->       </div><script type="text/javascript">
  						//FCKeditor.ReplaceAllTextareas('htmlContent');
     					TM.openHtml('divContent','F_Content',360);
				</script></td>
        </tr>
        <tr>
          <td width="100" bgcolor="#FFFFFF">关键字：</td>
          <td bgcolor="#FFFFFF">
            <input name="F_KeyWords" class="input" value="{rows/row/F_Keywords}" size="50" />
          <font color="#9e9e9e">以,间隔开</font></td>
        </tr>
        <tr>
          <td width="100" bgcolor="#FFFFFF">相关图片：</td>
          <td bgcolor="#FFFFFF"><span class="ColContent"><font color="#9e9e9e">
            <input name="F_Images" class="input" value="{rows/row/F_Images}" size="100" />
          </font></span></td>
        </tr>
        <tr>
          <td width="100" bgcolor="#FFFFFF"><input name="editID" type="hidden" id="editID" value="0" />
          <input name="infoid" type="hidden" id="infoid" >
        <xsl:attribute name="value"><xsl:value-of select="rows/row/AId"/>
        <xsl:if test="count(rows/row)=0">
          0
        </xsl:if>
        </xsl:attribute>
        </input></td>
          <td bgcolor="#FFFFFF"> <input name="F_Content" id="F_Content" type="hidden" value="{rows/row/Content}" />         <input name="f" type="hidden" value="@文章" />
          <input class="btnD" id="Submit1" type="button" value="保存" name="Submit1" >
          
          <xsl:attribute name="onclick">TM.GetContents('F_Content');if(TM.saveContentCmd(this,'form1')==1){TM.pList()}</xsl:attribute>
          </input>
          &nbsp; &nbsp;
          <input class="btnD" type="button" value="取消" name="button" onclick="TM.closeTab()"/>
          &nbsp; &nbsp;
          <input name="contenturl" type="hidden" id="contenturl" >
          <xsl:attribute name="value"><xsl:value-of select="rows/row/F_Content"/></xsl:attribute>
          </input>
          <input id="tpath" readonly="readonly" name="tpath" type="hidden" class="w300" value="{rows/row/F_TPath}" /></td>
        </tr>
      </table>
    </form>
  </xsl:template>
</xsl:stylesheet>
